import java.util.Arrays;
import java.math.BigDecimal;
import java.util.Scanner;
public class Main2 {
	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		while(true)
		{
			String x=in.next();
			String y=in.next();
			BigDecimal b1=new BigDecimal(x);
			BigDecimal b2=new BigDecimal(y);
			System.out.println(b1.add(b2));
			System.out.println(b1.multiply(b2));
		}
	}

}
